<%@page import="bean.Patient"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
String sessionUser = (String) session.getAttribute("username");
if (sessionUser == null){
	response.sendRedirect("../modele/modele.jsp");
	return ;
}
%>
<%@ include file="../commun_page_swmenufree/swmenufree.jsp" %>
<jsp:include page="${pageConfig.contenu}" />

<%

if(request.getParameter("idPatient") != null) {
	int id = Integer.parseInt((String) request.getParameter("idPatient"));
	if(Patient.suprPatient(id)!=true) {
		out.println("<font color='red'>");
		out.println("Probleme de supression de patient : "+id);	
		out.println("</font>");
	} else {
		response.sendRedirect("listePatient.jsp");
	}
}

%>

</body>
</html>